package analyzer;

import human.OrganParameters;
import human.Parameter;
import human.Human;

public abstract class OrganAnalyzer {

    protected String[] knowledges;
    protected String organName;
    protected String doctorName;
    protected KnowledgeBase knowledgeBase = new KnowledgeBase();

    public Consultation work(Human pokemon) {
        OrganParameters paramSet = pokemon.getOrganParametrs(organName);
        Consultation consultation = new Consultation(doctorName);

        for (String knowledge : knowledges) {
            Parameter parametr = paramSet.getParametr(knowledge);
            consultation.addRecipe(knowledgeBase.getRecipe(parametr));
        }

        return consultation;
    }

    @Override
    public String toString() {
        return knowledgeBase.toString();
    }
}
